import threading


lock = threading.Lock()

# 上锁
lock.acquire()
print("上锁")


# 解锁
lock.release()
print("解锁")

print("over")